// !导入收集App底部功能按钮的模块
import VueRouter from 'vue-router';
// ?首页模块
import HomeContainer from './components/tabbars/HomeContainer.vue';
// ?会员模块
import MemberContainer from './components/tabbars/MemberContainer.vue';
// ?购物车模块
import ShopcarContainer from './components/tabbars/ShopcarContainer.vue';
// ?搜索模块
import SearchContainer from './components/tabbars/SearchContainer.vue';

// !对地址进行路由模块
const router = new VueRouter({
	routes: [
		{ path: '/', redirect: '/home' }, //如果是跟路径则从定向到首页
		{ path: '/home', component: HomeContainer },
		{ path: '/menber', component: MemberContainer },
		{ path: '/shopcar', component: ShopcarContainer },
		{ path: '/search', component: SearchContainer }
	],
	linkActiveClass: 'mui-active' //手动设置被激活的路由链接添加高亮样式
});
export default router;
